FVP: Compile ARM Cortex-A72 CPU support in
authorSandrine Bailleux <[email protected]>
Wed, 13 Jan 2016 09:04:26 +0000 (09:04 +0000)
committerSandrine Bailleux <[email protected]>
Wed, 13 Jan 2016 09:14:12 +0000 (09:14 +0000)
This patch enables the ARM Cortex-A72 support in BL1 and BL31 on FVP.
This allows the same TF binaries to run on a Cortex-A72 based FVP
without recompiling them.

Change-Id: I4eb6bbad9f0e5d8704613f7c685c3bd22b45cf47

plat/arm/board/fvp/platform.mk

index 22df6d7e71c4096537f0cc17e8d15c0e52067d66..ed4c89841dbaee7b0b4aa319cc6c22ab21e11abe 100644 (file)
@@ -62,11 +62,14 @@ PLAT_INCLUDES               :=      -Iplat/arm/board/fvp/include
 
 PLAT_BL_COMMON_SOURCES :=      plat/arm/board/fvp/aarch64/fvp_common.c
 
-BL1_SOURCES            +=      drivers/io/io_semihosting.c                     \
-                               lib/cpus/aarch64/aem_generic.S                  \
+FVP_CPU_LIBS           :=      lib/cpus/aarch64/aem_generic.S                  \
                                lib/cpus/aarch64/cortex_a35.S                   \
                                lib/cpus/aarch64/cortex_a53.S                   \
                                lib/cpus/aarch64/cortex_a57.S                   \
+                               lib/cpus/aarch64/cortex_a72.S
+
+BL1_SOURCES            +=      drivers/io/io_semihosting.c                     \
+                               ${FVP_CPU_LIBS}                                 \
                                lib/semihosting/semihosting.c                   \
                                lib/semihosting/aarch64/semihosting_call.S      \
                                plat/arm/board/fvp/aarch64/fvp_helpers.S        \
@@ -87,10 +90,7 @@ BL2_SOURCES          +=      drivers/arm/sp804/sp804_delay_timer.c           \
 BL2U_SOURCES           +=      plat/arm/board/fvp/fvp_bl2u_setup.c             \
                                plat/arm/board/fvp/fvp_security.c
 
-BL31_SOURCES           +=      lib/cpus/aarch64/aem_generic.S                  \
-                               lib/cpus/aarch64/cortex_a35.S                   \
-                               lib/cpus/aarch64/cortex_a53.S                   \
-                               lib/cpus/aarch64/cortex_a57.S                   \
+BL31_SOURCES           +=      ${FVP_CPU_LIBS}                                 \
                                plat/arm/board/fvp/fvp_bl31_setup.c             \
                                plat/arm/board/fvp/fvp_pm.c                     \
                                plat/arm/board/fvp/fvp_security.c               \